// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_d;

import android.content.*;
import android.database.Cursor;
import com.nnee.p_pr.p_prov.cls_ae;

public class cls_c
{

    public cls_c()
    {
    }

    public static cls_c a()
    {
        if(b == null)
            b = new cls_c();
        return b;
    }

    public static void a(Context context)
    {
        a = context;
    }

    public void a(String s, String s1)
    {
        String s2 = (new StringBuilder()).append("group_name = '").append(s).append("' AND ").append("name").append(" = '").append(s1).append("'").toString();
        a.getContentResolver().delete(cls_ae.f, s2, null);
    }

    public void a(String s, String s1, String s2)
    {
        ContentValues contentvalues = new ContentValues();
        contentvalues.put("group_name", s);
        contentvalues.put("name", s1);
        contentvalues.put("value", s2);
        a.getContentResolver().insert(cls_ae.f, contentvalues);
    }

    public String b(String s, String s1, String s2)
    {
        String s3 = (new StringBuilder()).append("group_name = '").append(s).append("' AND ").append("name").append(" = '").append(s1).append("'").toString();
        Cursor cursor = a.getContentResolver().query(cls_ae.f, c, s3, null, null);
        if(cursor != null && cursor.moveToFirst())
            s2 = cursor.getString(1);
        if(cursor != null)
            cursor.close();
        return s2;
    }

    static Context a;
    static cls_c b = null;
    static final String c[];
    static final int d = 0;
    static final int e = 1;
    static final int f = 2;

    static 
    {
        String as[] = new String[3];
        as[0] = "name";
        as[1] = "value";
        as[2] = "type";
        c = as;
    }
}
